# api1/urls.py
from django.urls import path
from apps.userManager.views import *

# app_name = 'api1'
# urlpatterns = [
#     # path('url_name', api_name)
#     # 这是一个样例，指定路由名为url_name，对应处理函数为当前app内views.py中的api_name
#     path('story', story),
#     path('storyspec', story_spec),
#     path('testresult', test_result)
# ]
from django.urls import path, include
from apps.rdEfficiency.views import cal_rd_efficiency, get_user_score, get_rule,ZtRdEfficiencyDeptViewSet, \
    ZtRdEfficiencyCompanyViewSet,get_dept_analyse,get_company_analyse,get_rdEfficiency_excel,get_company_dept

urlpatterns = [
    path('rd_efficiency', cal_rd_efficiency, name='cal_rd_efficiency'),
    path('get_user_score', get_user_score, name='get_user_score'),
    path('get_rule', get_rule, name='get_rule'),
    path('get_dept_persons', ZtRdEfficiencyDeptViewSet.as_view({'get': 'list'})),
    path('get_dept_analyse', get_dept_analyse, name='get_dept_analyse'),
    path('get_rdEfficiency_excel', get_rdEfficiency_excel, name='get_rdEfficiency_excel'),
    path('get_company_persons', ZtRdEfficiencyCompanyViewSet.as_view({'get': 'list'})),
    path('get_company_analyse', get_company_analyse, name='get_company_analyse'),
    path('get_company_dept', get_company_dept, name='get_company_dept'),
]